<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('bootstrap');
		echo $this->Html->css('style');

		echo $this->fetch('meta');
		echo $this->fetch('css');
		echo $this->fetch('script');
		echo $this->Html->script('jquery-1.7.2.min');
		echo $this->Javascript->link('bootstrap');
	?>
</head>
<body>
	<div class="container">
		<div id="header">			
			<div class="row-fluid">  
				<br/><h1>Administraci&oacute;n del Sitio</h1><br/>
			</div>
		</div>
		<div id="content">

			<?php echo $this->Session->flash(); ?>
	
			<div class="row-fluid">  
				<div class="span3">  
					<div class="well sidebar-nav">  
						<ul id="myTab" class="nav nav-list">
							 <li class="nav-header">
								Acciones
							  </li>
							<li><?php echo $this->Html->link('Productos', array('admin' => true, 'controller' => 'productos', 'action' => 'index')); ?></li>
							<li><?php echo $this->Html->link('Rubros', array('admin' => true, 'controller' => 'rubros', 'action' => 'index')); ?></li>
							<li><?php echo $this->Html->link('lineas', array('admin' => true, 'controller' => 'lineas', 'action' => 'index')); ?></li>								
							<li><?php echo $this->Html->link('Marcas', array('admin' => true, 'controller' => 'marcas', 'action' => 'index'), array('escape' => false)); ?></li>
							<li class="divider"></li>
							<li><?php echo $this->Html->link('Ver sitio', array('admin' => false, 'controller' => 'pages', 'action' => 'display')); ?></li>
							<li class="divider"></li>
							<li><?php echo $this->Html->link('Salir', array('admin' => false, 'controller' => 'Users', 'action' => 'logout')); ?> </li>
						</ul>
					</div>
				</div>
				<div class="span9">  

				<?php echo $this->fetch('content'); ?>
				</div>
			</div>
		</div>
		<div id="footer">
			<a href="http://cakephp.org/"><?php echo $this->Html->image("cakephp.png", array('alt' => "cakePHP"));?></a><br/><br/>
		Diseño de página  <br/>
		Fabiani Luis <br/>
		</div>
	</div>
</body>
</html>
